package com.fbli.test.mapper;

import com.fbli.test.entity.Token;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface TokenMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Token record);

    Token selectByPrimaryKey(Long id);

    List<Token> selectAll();

    int updateByPrimaryKey(Token record);

    Token selectByUserId(@Param("userId") Long userId);

    Token selectByToken(@Param("token") String token);
}